package com.billing.model.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.billing.model.entity.TScheduling;


public interface SchedulingBeanMapper {

	
	/**
	 * 根据班次id获取排班信息
	 * @param id
	 * @return
	 */
	public TScheduling getTScheduling(@Param("id")int id);
	
	/**
	 * 创建排班信息
	 * @param che
	 * @return
	 */
	public int insertTScheduling(TScheduling che);
	/**
	 * 根据商户id查询排班列表
	 * @param organizationid
	 * @return
	 */
	public List<TScheduling> geTSchedulingsByOrganizationid(@Param("orgid")int orgid);
	/**
	 * 获取排班列表信息
	 * @param currentPage
	 * @param pageSize
	 * @return
	 */
	public List<TScheduling> selectTSchedulingList(@Param("organizationid")int organizationid,@Param("currentPage")int currentPage,@Param("pageSize")int pageSize);
	
	/**
	 * 获取排班列表条数信息
	 * @return
	 */
	public int selectTSchedulingNum(@Param("organizationid")int organizationid);
	/**
	 * 根据排班id获取排班信息
	 * @param id
	 * @return
	 */
	public TScheduling selectTSchedulingByid(@Param("id")int id);
	/**
	 * 根据id删除排班信息
	 * @param id
	 * @return
	 */
	public int deleteTScheduling(@Param("id")int id);
}
